package kr.hkit.powerjava.chapter04;

import java.util.Scanner;

public class programming02 {
	public static void main(String[] args) {
		
		int rprice;
		int tprice;
		int vat;
		int change;
		
		Scanner input = new Scanner(System.in);
		System.out.print("받은 돈: ");
		rprice = input.nextInt();
		System.out.print("상품의 총액: ");
		tprice = input.nextInt();
		
		vat = tprice / 10;
		change = rprice - tprice;
		System.out.println("부가세: " + vat);
		System.out.println("잔돈: " + change);
	}
}
